package com.eslserver.core;

import java.io.InputStream;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ESLServerConfig extends Config {
	public static final Logger LOG = LoggerFactory
			.getLogger(ESLServerConfig.class);

	private static ESLServerConfig eslServerConfig;

	public static ESLServerConfig getInstance(InputStream resourceAsStream) {
		if (eslServerConfig == null) {
			eslServerConfig = new ESLServerConfig(resourceAsStream);
		}
		return eslServerConfig;
	}

	private ESLServerConfig(InputStream resourceAsStream) {
		super(resourceAsStream);
	}

	public static final String CONFIG = "config";
	public static final String DATA_SRC = "dataSource";
	public static final String ATTACHMENT_LOCATION = "attachmentLocation";

}
